public class FourthQuestion {
    String name;
    int id;
    int age;

    public void print(){
        System.out.println("学生信息:学号"+id+",姓名:"+",年龄:"+age);
    }


    public static void main(String[] args) {
        FourthQuestion fourthQuestion1 = new FourthQuestion();
        fourthQuestion1.name="张三";
        fourthQuestion1.id=1001;
        fourthQuestion1.age=18;
        fourthQuestion1.print();
        FourthQuestion fourthQuestion2 = new FourthQuestion();
        fourthQuestion2.name="张三";
        fourthQuestion2.id=1002;
        fourthQuestion2.age=19;
        fourthQuestion2.print();
        FourthQuestion fourthQuestion3 = new FourthQuestion();
        fourthQuestion3.name="张三";
        fourthQuestion3.id=1003;
        fourthQuestion3.age=20;
        fourthQuestion3.print();

    }
}
